[ENG-9044] Add manage command to resync preprint dois v1#11617
Open
Vlad0n20 wants to merge 2 commits intoCenterForOpenScience:feature/pbs-26-2from
Open
[ENG-9044] Add manage command to resync preprint dois v1#11617Vlad0n20 wants to merge 2 commits intoCenterForOpenScience:feature/pbs-26-2from
Vlad0n20 wants to merge 2 commits intoCenterForOpenScience:feature/pbs-26-2from
Conversation
cslzchen
requested changes
Mar 5, 2026
Collaborator
cslzchen
left a comment
There was a problem hiding this comment.
Looks good overall. In addition to my questions/comments:
- Can we add logs of the output of the logs for you local run?
- We should also work with CE to test this command with a copy of production DB.
cslzchen
approved these changes
Mar 13, 2026
Collaborator
cslzchen
left a comment
There was a problem hiding this comment.
Looks good 👍
- Make sure we test this against a copy of prod DB before running this on prod.
- If there are errors, need look further on why they fail, and probably another fix.
- Test if the default batch size is good, how long does it take, and also see how many times we need to repeat this.
- Make sure whoever uses this command knows that we need to repeatedly run this command.
Comment on lines
+113
to
+117
| help=( | ||
| 'Maximum number of preprints to process per run (default: 500). ' | ||
| 'The command processes the first N eligible preprints and exits; ' | ||
| 're-run the command to continue with the next batch.' | ||
| ), |
Collaborator
There was a problem hiding this comment.
Oh, I see. This is an OK alternative to the loop I suggested. Just need to make sure whoever runs this command is aware of the fact that they need to keep running this command until none exists. Cc @adlius for your input on this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket
Purpose
Changes
Side Effects
QE Notes
CE Notes
Documentation